//
//  OMGoodResponse.m
//  OMENGO_NEW
//
//  Created by 梁尚嘉 on 2017/5/4.
//  Copyright © 2017年 Kamfat. All rights reserved.
//

#import "OMGoodResponse.h"

@implementation OMGoodResponse
+ (NSDictionary *)mj_objectClassInArray
{
    return @{@"list":[OMProduct class]};
}

- (void)fullFillImageStrWithPrefix:(NSString *)prefix
{
    if (!prefix.length) {
        NSLog(@"图片前缀为空!");
        return;
    }

    for (OMProduct *product in self.list) {
        product.image = [prefix stringByAppendingString:product.image?:@""];
    }
}
@end
